package com.szt.sy.controller.api.open;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import com.baomidou.mybatisplus.mapper.EntityWrapper;
import com.szt.sy.controller.base.ApiBaseController;
import com.szt.sy.entity.blog.FriendUrl;
import com.szt.sy.service.blog.friendurl.FriendUrlService;
import com.szt.sy.vo.rep.base.RepBaseVO;

/***
 * 接口-开放-友情链接
 * 
 * @author wwy
 *
 */
@RestController
@RequestMapping("api/open/friendUrl")
public class ApiOpenFriendUrlController extends ApiBaseController {
	
	@Autowired
	private FriendUrlService friendUrlService;
	
	@PostMapping("list")
	public RepBaseVO<List<FriendUrl>> list() {
		RepBaseVO<List<FriendUrl>> repVO = new RepBaseVO<>();
		List<FriendUrl> dataList = friendUrlService.selectList(new EntityWrapper<FriendUrl>());
		return repVO.setCommonSuccess().setData(dataList);
	}
	
}
